import React from 'react';
import {DesktopOutlined, SettingOutlined,} from '@ant-design/icons';

const routes = [
  {icon: <DesktopOutlined/>, title: '工作台', path: '/home'},
  // {
  //   icon: <SettingOutlined/>, title: '常用功能', child: [
  //     {title: '经营历程', path: '/system/account'},
  //     {title: '单据审核', path: '/system/account'},
  //   ]
  // },
  {
    icon: <SettingOutlined/>, title: '销售管理', child: [
      {title: '销售出库单', path: '/order/sale/index/create'},
      {title: '销售退货单', path: '/order/sale/return/create'},
      {
        title: '销售报表', child: [
          {title: '销售明细查询', path: '/order/sale/index'},
          {title: '销售退货统计', path: '/order/sale/return'},
          // {title: '销售汇总统计', path: '/order/sale/report'},
        ],
      },
    ]
  },
  {
    icon: <SettingOutlined/>, title: '采购管理', child: [
      {title: '采购订单', path: '/order/buy/purchase/create/'},
      // {title: '采购入库单', path: '/order/buy/in'},
      {title: '采购退货单', path: '/order/buy/return/create'},
      {
        title: '采购报表', child: [
          {title: '采购明细查询', path: '/order/buy/purchase'},
          {title: '采购退货统计', path: '/order/buy/return'},
          // {title: '采购汇总统计', path: '/order/buy/report'},
        ],
      },
    ]
  },
  {
    icon: <SettingOutlined/>, title: '仓储管理', child: [
      {title: '存货明细账', path: '/inventory'},
    ]
  },
  {
    icon: <SettingOutlined/>, title: '财务管理', child: [
      {title: '付款单', path: '/bank/payment/create'},
      {title: '收款单', path: '/bank/receipt/create'},
      {title: '调账', path: '/bank/expense/create'},
      // {
      //   title: '调账', child: [
      //     {title: '资金减少', path: '/bank/expense/create'},
      //     {title: '资金增加', path: '/bank/expense/create?type=EI'},
      //     // {title: '提现存现转账', path: '/system/account'},
      //   ]
      // },
      {
        title: '财务报表', child: [
          {title: '付款明细查询', path: '/bank/payment'},
          {title: '收款明细查询', path: '/bank/receipt'},
          // {title: '调账明细查询', path: '/bank/expense'},
          {title: '资金减少明细查询', path: '/bank/expense/list/EO'},
          {title: '资金增加明细查询', path: '/bank/expense/list/EI'},
        ]
      },

      // {title: '现金银行', path: '/system/account'},
    ]
  },
  {
    icon: <SettingOutlined/>, title: '基础资料', child: [
      {title: '商品管理', path: '/base/product'},
      // {
      //   title: '价格管理', child: [
      //     {title: '物价管理', path: '/base/account'},
      //     {title: '价格跟踪', path: '/base/account'},
      //   ]
      // },
      // {title: '价格信息', path: '/base/account'},
      {
        title: '往来单位管理', child: [
          // {title: '地区信息', path: '/base/account'},
          {title: '客户管理', path: '/base/customer'},
          {title: '供应商管理', path: '/base/supplier'},
        ]
      },
      // {
      //   title: '组织架构管理', child: [
      //     {title: '部门信息', path: '/base/account'},
      //     {title: '职员信息', path: '/base/account'},
      //   ]
      // },
      {title: '存货仓库', path: '/base/warehouse'},
      // {
      //   title: '仓储管理', child: [
      //     {title: '存货仓库', path: '/base/warehouse'},
      //     {title: '货位信息', path: '/base/account'},
      //   ]
      // },
      {title: '财务账目', path: '/base/bank'},
      {title: '费用', path: '/base/expense'},
    ]
  },
  {
    icon: <SettingOutlined/>, title: '系统管理', auth: 'user.list|role.list',
    child: [
      {title: '操作员管理', auth: 'user.list', path: '/system/account'},
      {title: '用户组权限', auth: 'role.list', path: '/system/role'},
    ]
  },
]

export default routes